package me

/**
  * Created by lzd on 2019/1/25.
  */
object tuple {

  def main(args: Array[String]): Unit = {

  }

  def tuple: Unit = {
    val tuple1 = (1, 2, 3, "heiheihei")
    //元组数据的访问，注意元组元素的访问有下划线，并且访问下标从 1  开始，而不是 0
    val value1 = tuple1._4
    println(value1)
  }
}
